/**
 * @Title:  VolleyRequest.java 
 * @Copyright:  XXX Co., Ltd. Copyright YYYY-YYYY,  All rights reserved 
 * @Description:  TODO<请描述此文件是做什么的> 
 * @author:  MeiYi 
 * @data:  2016-3-11 下午2:44:21 
 * @version:  V1.0 
 */

package artid.com.arttogo.network;

import com.android.volley.AuthFailureError;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.android.volley.toolbox.StringRequest;

import java.util.HashMap;
import java.util.Map;

/**
 * TODO<请描述这个类是干什么的>
 * 
 * @author 熊彬
 * @data: 2016-3-11 下午2:44:21
 * @version: V1.0
 */
public class VolleyRequest extends StringRequest {

	/**
	 * @param method
	 * @param url
	 * @param listener
	 * @param errorListener
	 */
	public VolleyRequest(int method, String url, Listener<String> listener,
						 ErrorListener errorListener) {
		super(method, url, listener, errorListener);
		// TODO Auto-generated constructor stub
		
	}

	@Override
	public Map<String, String> getHeaders() throws AuthFailureError {
		HashMap<String, String> headers = new HashMap<String, String>();
		headers.put("Accept", "application/json, text/javascript, */*");
//		headers.put("Charset", "UTF-8");
		// MyLog.d(TAG, "headers=" + headers);
		return headers;
	}
}
